package com.zjbd.shuaiyanglive.service.impl;

import com.zjbd.shuaiyanglive.api.SystemPayCloent;
import com.zjbd.shuaiyanglive.service.ILiveService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 直播业务
 * */
@Slf4j
@Service
public class LiveServiceImpl implements ILiveService {

    @Autowired
    private SystemPayCloent systemPayCloent;

    @Override
    public String liveTip(Integer liveId) {
        log.info("2、处理直播打赏业务");
        String myBalance = systemPayCloent.getMyBalance("123");
        log.info("服务返回结果{}",myBalance);
        return "打赏成功";
    }
}
